package com.datn.utils;

import com.datn.activity.R;

import android.app.Dialog;
import android.content.Context;

public class DialogUtils {

	public static DialogUtils instance = new DialogUtils();
	public static Context mContext;

	public DialogUtils(){

	}

	public static DialogUtils getInstance(Context context){
		mContext = context;
		return instance;
	}

	public static void showCustomDialog(String title, int resourceView){
		Dialog dialog = new Dialog(mContext);
		dialog.setContentView(resourceView);
		dialog.setTitle(title);
		dialog.show();
	}

	public static void showCustomHelpDialog(int resourceView){
		Dialog dialog = new Dialog(mContext);
		dialog.setContentView(resourceView);
		dialog.setTitle("Quick Help");
		dialog.show();
	}
	
	public static void showCustomAboutDialog(int resourceView){
		Dialog dialog = new Dialog(mContext);
		dialog.setContentView(resourceView);
		dialog.setTitle("About me");
		dialog.show();
	}


}
